package OOP.day08.AnimalDemo;

public class AnimalMain {
    public static void main(String[] args){
        System.out.println("Animal-------------------");
        Animal animal = new Animal("大黄", 10, "黄");
        animal.eat();
        animal.drink();

        System.out.println("Dog----------------------");
        Dog dog = new Dog("哈士奇", 5, "黑");
        dog.lookHome();
        dog.eat();
        dog.drink();

        System.out.println("Chick--------------------");
        Chick chick = new Chick("小红", 1, "红");
        chick.layEggs();
        chick.eat();
        chick.drink();

        System.out.println("Fish---------------------");
        Fish fish = new Fish("小蓝", 2, "蓝");
        fish.eat();
        fish.drink();
    }
}
